const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 配件管理路由
const routers = [
  {
    path: '/oa',
    meta: {
      title: '经销商事项反馈',
      icon: 'el-icon-s-cooperation'
    },
    redirect: '/oa',
    component: RouteView,
    children: [
      {
        path: '/oa/matterFeedback',
        meta: {
          title: '事项反馈'
        },
        redirect: '/oa/matterFeedback',
        component: RouteView,
        children: [
          {
            path: '/oa/matterFeedback/dealerMatterFeedback',
            meta: {
              title: '事项反馈录入',
              keepAlive: true
            },
            component: AsyncComponent('oa/matterFeedback/dealerMatterFeedback')
          },
          {
            path: '/oa/matterFeedback/dealerMatterFeedback/query',
            meta: {
              title: '事项反馈查询',
              keepAlive: true
            },
            component: AsyncComponent('oa/matterFeedback/dealerMatterFeedback/query')
          },
          {
            path: '/oa/matterFeedback/dealerMatterFeedback/OEMquery',
            meta: {
              title: '事项反馈查询',
              keepAlive: true
            },
            component: AsyncComponent('oa/matterFeedback/dealerMatterFeedback/OEMquery')
          },
        ]
      },
    ]
  }
];
export default routers;
